package org.example.consume.controller;

import org.example.consume.service.BookstoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BookStoreController {

    @Autowired
    private BookstoreService bookstoreService; // 直接注入主 Bean

    @RequestMapping("/toRead")
    public String toRead() {

        return bookstoreService.readingList();
    }
}
